<?php

namespace common\models\hospital;

use Yii;

/**
 * This is the model class for table "{{%history_log}}".
 *
 * @property int $id
 * @property string|null $history 医院名
 * @property string|null $user_content 用户每天对比量
 * @property string|null $consumption_content 消费明细条数记录
 * @property string|null $day
 * @property int|null $created_at
 */
class HistoryLog extends \common\models\BaseModel
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%history_log}}';
    }

    public static function getDb()
    {
        return Yii::$app->db3;
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['user_content', 'consumption_content'], 'string'],
            [['day'], 'safe'],
            [['created_at'], 'integer'],
            [['history'], 'string', 'max' => 20],
        ];
    }

    /**
     * {@inheritdoc}
     */
//    public function attributeLabels()
//    {
//        return [
//            'id' => 'ID',
//            'history' => 'History',
//            'user_content' => 'User Content',
//            'consumption_content' => 'Consumption Content',
//            'day' => 'Day',
//            'created_at' => 'Created At',
//        ];
//    }
}
